// 线上环境 ↓
// const ServerUrl = "42.248.127.65";
// const ServerPort = "8888";

// 本地环境 ↓
const ServerUrl = "127.0.0.1";
const ServerPort = "9000";

import {createFromIconfontCN} from "@ant-design/icons";
import PropTypes from 'prop-types';


// iconfont在线JS地址
const scriptUrl = "//at.alicdn.com/t/font_2570294_1dumvkeov2a.js";
const BASEURL = `http://${ServerUrl}:${ServerPort}`;

const iConFontStyle = {
    fontSize: '20px', display: 'inline-block', verticalAlign: 'middle'
}

/* 自定义ICON */
const IconFont = createFromIconfontCN({
    scriptUrl,
});
IconFont.propTypes = {
    type: PropTypes.string
}
IconFont.defaultProps = {
    style: iConFontStyle
}
const Config = {
    ServerUrl,
    ServerPort,
    scriptUrl,
    BASEURL,
    IconFont
}

export default Config;
